import type { SysDepartment } from "./SysDepartment";
import type { SysPosition } from "./SysPosition";
import type { SysRole } from "./SysRole";
import type { SysUser } from "./SysUser";
import type { SysMenu } from "./SysMenu";

export class UserProfile {
    user!: SysUser;
    department?: SysDepartment;
    roles: SysRole[] = [];
    positions: SysPosition[] = [];
    /**
     * 菜单树
     */
    menus: SysMenu[] = [];
    /**
     * 平铺菜单列表
     */
    menuList?: SysMenu[] = [];
    /**
     * 菜单字典
     */
    menuIdDict: {
        [id: number]: SysMenu
    } = {};
    menuPathDict: {
        [path: string]: SysMenu
    } = {};
}